package com.quanyan.club.pullclub.utils;

/**
 * Created by xian-guo on 2017/2/25.
 */
public class StringUtils {

    public static boolean isBlankOrNull(CharSequence cs) {
        int strLen;
        if(cs != null && (strLen = cs.length()) != 0) {
            for(int i = 0; i < strLen; ++i) {
                if(!Character.isWhitespace(cs.charAt(i))) {
                    return false;
                }
            }
            return true;
        }
        return true;
    }

    public static boolean isNotBlankOrNull(CharSequence cs) {
        return !isBlankOrNull(cs);
    }

}
